package org.opens.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Data
@TableName(value = "lottery_history")
public class LotteryHistory {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * 彩票类型
     */
    @TableField(value = "type")
    private String type;

    /**
     * 期数
     */
    @TableField(value = "num_of_periods")
    private String numOfPeriods;

    /**
     * 红球1
     */
    @TableField(value = "red_num1")
    private Integer redNum1;

    /**
     * 红球2
     */
    @TableField(value = "red_num2")
    private Integer redNum2;

    /**
     * 红球3
     */
    @TableField(value = "red_num3")
    private Integer redNum3;

    /**
     * 红球4
     */
    @TableField(value = "red_num4")
    private Integer redNum4;

    /**
     * 红球5
     */
    @TableField(value = "red_num5")
    private Integer redNum5;

    /**
     * 红球6
     */
    @TableField(value = "red_num6")
    private Integer redNum6;

    /**
     * 蓝球
     */
    @TableField(value = "blue_num")
    private Integer blueNum;

    /**
     * 开奖日期
     */
    @TableField(value = "draw_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date drawDate;

    /**
     * 兑奖截止日期
     */
    @TableField(value = "ex_date")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date exDate;

    /**
     * 1等奖中奖数量
     */
    @TableField(value = "first_price_num")
    private Integer firstPriceNum;

    /**
     * 2等奖中奖数量
     */
    @TableField(value = "second_price_num")
    private Integer secondPriceNum;

    /**
     * 3等奖中奖数量
     */
    @TableField(value = "third_price_num")
    private Integer thirdPriceNum;

    /**
     * 4等奖中奖数量
     */
    @TableField(value = "fourth_price_num")
    private Integer fourthPriceNum;

    /**
     * 5等奖中奖数量
     */
    @TableField(value = "fifth_price_num")
    private Integer fifthPriceNum;

    /**
     * 6等奖中奖数量
     */
    @TableField(value = "sixth_price_num")
    private Integer sixthPriceNum;

}
